package io.shallwe.task;

import com.jfinal.aop.Aop;
import com.jfinal.config.JFinalConfig;
import com.jfinal.core.JFinal;
import com.jfinal.kit.LogKit;

import java.util.concurrent.TimeUnit;

/***
 * 参数采集线程
 */
public class ParameterCollectRunnable implements  Runnable {
    ParameterCollectService service = Aop.get(ParameterCollectService.class);
    @Override
    public void run() {
        while (true){
            service.collectParamValue();
            try {
                LogKit.warn("采集过程参数");
                TimeUnit.SECONDS.sleep(20);
            }catch (Exception e){

            }
        }
    }
}
